package com.clqteam.serviceimpl;

import java.util.List;

import com.clqteam.dao.SupplierDao;
import com.clqteam.daoimpl.SupplierDaoImpl;
import com.clqteam.model.Supplier;
import com.clqteam.service.SupplierService;

import net.sf.json.JSONObject;
/**查找供应商信息
 * @author lxg
 *
 */
public class SupplierServiceImpl implements SupplierService{
	SupplierDao sd=new SupplierDaoImpl();
	
	@Override
	public JSONObject selectSupplier(int page, int rows) {
		JSONObject jo=new JSONObject();
		jo.put("total", sd.countSupplier());
		jo.put("rows", sd.selectSupplier(page, rows));
		return jo;
	}

}
